package com.treasure.common.types;

import com.treasure.common.exception.ServiceException;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * @author sunhongmin
 * @date 2023/8/27 09:07
 * @description
 */
public class Prompt {

    @Getter
    private final String value;

    public Prompt(String value) {
        if (StringUtils.isBlank(value)) {
            throw new ServiceException("提示词模版prompt不能为空");
        }
        this.value = value;
    }
}
